package com.yujn.boot.controller;

import com.yujn.boot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: hello controller
 * @author: Yujn
 * @create: 2021-02-25 10:47
 **/
@RequestMapping("/hello")
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;
    
    /**
     * Hello Word
     * @param
     * @return
     * @author yujn
     * @date 2021/2/25 10:49
     */
    @GetMapping("/boot")
    public String helloWord(){
        return helloService.getHello();
    }
}
